from django.contrib import admin
from blog.models import *

class settingAdmin(admin.ModelAdmin):
    list_display = ('message','turn_off_blog')
    def has_add_permission(self, request):
        return False

class postAdmin(admin.ModelAdmin):
    list_display=('title','date','description','category')
	
class categoryAdmin(admin.ModelAdmin):
    list_display=('title','description')
	
class favourite_websiteAdmin(admin.ModelAdmin):
    list_display=('name','url')

class PagesAdmin(admin.ModelAdmin):
    list_display=('title','description')
	
admin.site.register(Category,categoryAdmin)
admin.site.register(Post,postAdmin)
admin.site.register(Favourite_website,favourite_websiteAdmin)
admin.site.register(Setting,settingAdmin)
admin.site.register(Page,PagesAdmin)

